package cn.abcsys.cloud.devops.runtime.dao;

import java.sql.SQLException;
import java.util.List;

import cn.abcsys.cloud.devops.runtime.entity.Registry;

public interface RegistryMapper {
	/**
	 * 创建
	 * @param Registry
	 * @return
	 * @throws SQLException
	 */
	public int insertRegistry(Registry registry) throws SQLException;

	/**
	 * 删除
	 * @param registryId
	 * @return
	 * @throws SQLException
	 */
	public int deleteRegistry(Integer registryId) throws SQLException;

	/**
	 * 修改
	 * @param record
	 * @return
	 * @throws SQLException
	 */
	public int updateRegistry(Registry record) throws SQLException;

	/**
	 * 仓库详情
	 * @param registryId
	 * @return
	 * @throws SQLException
	 */
	public Registry getRegistryDetail(Integer registryId) throws SQLException;

	/**
	 * 批量查询
	 * @param type
	 * @param tenantId
	 * @return
	 * @throws SQLException
	 */
	public List<Registry> selectRegistryList(Registry registry) throws SQLException;

}
